public class Demo11 {
    public static void main(String[] args) {
        Demo11Person p = new Demo11Student("Xiao Ming");
        p.run();
    }
}

interface Demo11Person{
    String getName();

    default void run(){
        System.out.println(getName()+" run");
    }
}

class Demo11Student implements Demo11Person{
    private String name;

    public Demo11Student(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }
}